<?php

namespace app\admin\validate;

use think\Validate;

class Staff extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'wkno' => 'require',
        'name' => 'require',
        'mobile' => 'require',
        'position' => 'require',
        'admin_id' => 'require',
        'branch_id' => 'require',
        'style' => 'require',
        'salt' => 'require',
        'password' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['wkno','name','mobile','position','admin_id','branch_id','style','salt','password'],
        'edit' => [],
    ];
    
}
